//
//  RWBluetoothUtils.h
//  iconstruction-ios
//
//  Created by Ray on 2024/5/13.
//  Copyright © 2024 81SK. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface RWBluetoothUtils : NSObject

/// 将16进制的字符串转换成NSData
+ (NSMutableData *)convertHexStrToData:(NSString *)str;
/// 十六进制转换为普通字符串的
+ (NSString *)convertHexStringToString:(NSString *)hexString;
/// 普通字符串转换为十六进制
+ (NSString *)convertStringToHexString:(NSString *)string;
/// int转data
+ (NSData *)convertIntToData:(int)i;
/// data转int
+ (int)convertDataToInt:(NSData *)data;
/// 十六进制转换为普通字符串的。
+ (NSData *)convertHexStringToData:(NSString *)hexString;
/// 将NSData转为16进制的字符串
+ (NSString *)convertDataToHexStr:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
